import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {SysRoleComponent} from './sys-role.component';
import {ModifyRoleMenuComponent} from "./modify-role-menu/modify-role-menu.component";

const routes: Routes = [
    {path: '', component: SysRoleComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-sys-role/add-sys-role.module#AddSysRoleModule'},
            {path: 'list', loadChildren: './list-sys-role/list-sys-role.module#ListSysRoleModule'},
            {path: 'modify', loadChildren: './modify-sys-role/modify-sys-role.module#ModifySysRoleModule'},
            {path: 'report', loadChildren: './report-sys-role/report-sys-role.module#ReportSysRoleModule'},
            {path: 'modify-role-menu', loadChildren: './modify-role-menu/modify-role-menu.module#ModifyRoleMenuModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class SysRoleRoutingModule {
}
